/**
 * 
 */
package com.oppo.dao;

import java.util.List;

import org.apache.commons.dbutils.handlers.BeanListHandler;

import com.oppo.bean.UserBean;
import com.oppo.db.BasicDataOperation;
import com.oppo.tools.MyTools;

/**
 * @author 天下有雪
 *
 */
public class FindImgDao {
	public List<UserBean> getImg(UserBean one){
		String sql = "SELECT user_img,user_name FROM user_t WHERE user_id = ?";
		List<UserBean> list = MyTools.getNewInstance(BasicDataOperation.class).queryData(sql, new BeanListHandler<>(UserBean.class), one.getUser_id());
		return list;
	}
}
